package com.ubxtech.annotation;


import java.lang.annotation.*;


/**
 * 消息回调注解
 * @author Victor.Xiao
 * @since 2023-11-24 14:23
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MsgCallback {

    /**
     * 消息类型
     */
    MsgTypeEnum type() default MsgTypeEnum.SERVICE;
    /**
     * 订阅哪个topic
     */
    String subTopic() default "";
}
